﻿using System;
using SharpSqlAnalyzer.nodes;

namespace SharpSqlAnalyzer.stmt.redshift
{
	// Token: 0x02000111 RID: 273
	public class TRedshiftDropGroup : TCustomSqlStatement
	{
		// Token: 0x17000193 RID: 403
		// (get) Token: 0x060008EE RID: 2286 RVA: 0x00302B41 File Offset: 0x00300D41
		// (set) Token: 0x060008EF RID: 2287 RVA: 0x00302B49 File Offset: 0x00300D49
		public virtual TObjectName GroupName
		{
			get
			{
				return this.groupName;
			}
			set
			{
				this.groupName = value;
			}
		}

		// Token: 0x060008F0 RID: 2288 RVA: 0x00302B52 File Offset: 0x00300D52
		public TRedshiftDropGroup(EDbVendor dbvendor) : base(dbvendor)
		{
			this.sqlstatementtype = ESqlStatementType.sstredshiftDropGroup;
		}

		// Token: 0x060008F1 RID: 2289 RVA: 0x00302B68 File Offset: 0x00300D68
		public override int doParseStatement(TCustomSqlStatement psql)
		{
			if (this.rootNode == null)
			{
				return -1;
			}
			base.doParseStatement(psql);
			TDummy tdummy = (TDummy)this.rootNode;
			this.groupName = (TObjectName)tdummy.node1;
			return 0;
		}

		// Token: 0x060008F2 RID: 2290 RVA: 0x00302BA5 File Offset: 0x00300DA5
		public override void accept(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x060008F3 RID: 2291 RVA: 0x00302BB5 File Offset: 0x00300DB5
		public override void acceptChildren(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x04001233 RID: 4659
		private TObjectName groupName;
	}
}
